package com.lagou.demo.controller;

import com.lagou.edu.mvcframework.annotations.LagouController;
import com.lagou.edu.mvcframework.annotations.LagouRequestMapping;
import com.lagou.edu.mvcframework.annotations.Security;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@LagouController
@LagouRequestMapping("/demo2")
public class Demo2Controller {

    @LagouRequestMapping("/query")
    public String query2(HttpServletRequest request, HttpServletResponse resp, String name) throws IOException {
        resp.setCharacterEncoding("GBK");
        resp.getWriter().write("demo2正常响应");
        return "";
    }

}
